package com.prasad.java;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;

public class PersonList {
		
	@Test
	public void testPerson() {
		
		List<String> list = new ArrayList<String>();
		 
		 list.add("Sreedhar");
		 list.add("prasad");
		 list.add("Ali");
		 list.add("Prasad");
		 list.add("sreedhar");
		 list.add("ali");
		 
		 Collections.sort(list);
		 
		 Assert.assertThat(list.get(0), CoreMatchers.is("Ali"));
	}
	
}
